//
//  main.m
//  62.block本质
//
//  Created by 中创 on 2019/12/24.
//  Copyright © 2019 LS. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Person.h"

int weight;

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        int age = 10;
        static int height = 10;
        weight = 10;
        void(^block)(void) = ^{
            NSLog(@"age:%d   height:%d  weight:%d", age, height, weight);
        };
        age = 20;
        height = 20;
        weight = 20;
        block();
        
        Person * p = [[Person alloc] initWithName:@"1"];
        p.name = @"2";
        [p testBlock];
    }
    return 0;
}
